// printDate
// 系统默认0时区，需加上8时区来显示北京时间
//
// IDECodeSnippetCompletionPrefix: printDate
// IDECodeSnippetCompletionScopes: [All]
// IDECodeSnippetIdentifier: DDCF5D8C-4DF0-43D7-84CD-23A95FFD6F4E
// IDECodeSnippetLanguage: Xcode.SourceCodeLanguage.Objective-C
// IDECodeSnippetUserSnippet: 1
// IDECodeSnippetVersion: 2
- (void)printDate: (NSDate *)date {

    NSTimeZone *zone = [NSTimeZone systemTimeZone];
    NSInteger interval = [zone secondsFromGMTForDate: date];
    NSDate *localDate = [date  dateByAddingTimeInterval: interval];
    NSLog(@"\n     date:%@\nlocalDate:%@",date,localDate);
}
